package com.homework2.demo1;

import com.homework.demo1.MustStringArgumentException;
import com.homework.demo1.MustStringArgumentException2;

public class test {
    public static void main(String[] args) {
        Student student = new Student("张三");
        try {
//            student.printName("欢迎你");
//            student.printName(123);
        } catch (MustStringArgumentException e) {
            e.printStackTrace();
        }

        Student student2 = new Student("张三");
        try {
//            student2.printName("欢迎你");
//            student2.printName(123);
        } catch (MustStringArgumentException2 | MustStringArgumentException e) {
            e.printStackTrace();
        }
    }
}
